package by.bsu.fpmi.bbtp.authentication;

import javax.xml.bind.annotation.XmlType;

@XmlType(namespace = "authentication.fpmi.bsu.by", name = "LoginResponse")
public class LoginResponse {

    @XmlType(namespace = "authentication.fpmi.bsu.by", name = "Result")
    public static enum Result {
        SUCCESS, FAIL;
    }

    private Result result;
    private String sessionId;
    private Role role;

    public Result getResult() {
        return result;
    }

    public void setResult(Result result) {
        this.result = result;
    }

    public String getSessionId() {
        return sessionId;
    }

    public void setSessionId(String sessionId) {
        this.sessionId = sessionId;
    }

    public Role getRole() {
        return role;
    }

    public void setRole(Role role) {
        this.role = role;
    }
}